<!DOCTYPE html>
<html>
<head>
<title>Popup Blocked Fake Click on Anchor</title>
<script>
function test() {
  document.querySelector("a").dispatchEvent(new MouseEvent("click", {ctrlKey: true, metaKey: true}));
}
</script>
</head>
<body onload="test()">
If the fake click was not blocked then there will be a warning message displayed in a new tab. Otherwise, the test passes.
<a href="popup-success.html" target="tab">link</a>
</body>
</html>
